Skip to content

Conversation

@kunalchhabra37
Copy link

@kunalchhabra37 kunalchhabra37 commented Apr 19, 2022

Fixes #56 LoggingContext must be given either a name or a parent context by adding LoggingContext() and logger.info() with parent context in LoggingContext() at line 269 - 271

Fixed matrix-org#56 Error: LoggingContext must be given either a name or a parent context by adding LoggingContext() and logger.info() with parent context in LoggingContext() at line 269 - 271
@kunalchhabra37 kunalchhabra37 requested a review from a team as a code owner April 19, 2022 08:18
@clokep clokep changed the title Fixed Issue #56 Fix "LoggingContext must be given either a name or a parent context" error Apr 19, 2022
Comment on lines +269 to +271
parent_logcontext = current_context()
with LoggingContext(parent_context=parent_logcontext):
logger.info("Responder For S3")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what makes you believe this will fix the problem? I don't think it will.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the parent context would solve the issue

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you guide me? @richvdh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#56 (comment) has some thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: LoggingContext must be given either a name or a parent context

2 participants